package cn.gson.springboot.model.mapper.presalemapper;

import cn.gson.springboot.model.vo.presalevo.CategoryTree;
import cn.gson.springboot.model.pjos.*;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/*商机管理*/
@Repository
public interface PsBusinessMapper {
    /*查询当前用户商机列表*/
    public List<BusinessInfo> selectBusiness(@Param("empId") int empId,
                                             @Param("deptId") int deptId,
                                             @Param("businessName") String businessName,
                                             @Param("speedId") Integer speedId );


   /* 特别关注商机*/
   public List<BusinessInfo> selectSpecialBusiness(@Param("empId") int empId,
                                            @Param("deptId") int deptId,
                                            @Param("businessName") String businessName,
                                            @Param("speedId") Integer speedId );
    /*查询所有的商机进度*/
    public List<SpeedInfo> allSpeed();

    /** 查询当天最大的商机名称*/
    public String selectMaxBusinessName();
    /**查询该员工负责的客户*/
    public List<Customer> selectEmpCustomer(@Param("empId") int empId,@Param("cusName") String cusName);
    /**查询客户对应的联系人*/
    public List<Culinkman> selectCustomerLinkman(int customerId);
    /**产品类型下品牌*/
    public List<CategoryTree> category();

    /**条件查询产品*/
    public List<Productside> productsList(@Param("prName") String prName,@Param("pcId") int pcId,@Param("pbId") int pbId);
    /**根据商机id查询商机信息*/
    public BusinessInfo queryBusiness(int businesId);
   /* 查询该商机下的产品详情*/
    public List<Details> queryDetais(int businesId);

    /**
     * 新产品
     * @return
     */
    public List<Zproduct> newProductInfo(@Param("productName") String productName,@Param("pcId") int pcId,@Param("pbId") int pbId);
}
